import { Button } from "@douyinfe/semi-ui"
import { CustomIconLock } from "../icon/icon"

function Encrypted({onClickDecrypt}: {onClickDecrypt: ()=> void}){
    return (
        <div style={{
            width: '100%',
            height: '100%',
            display: 'flex',
            justifyContent: 'center',
            alignItems: 'center',
            flexDirection: 'column',
            color: '#999'
        }}>
            <CustomIconLock/>
            <span>文件内容已加密</span>
            <Button style={{marginTop: '20px'}} onClick={onClickDecrypt}>点击解密</Button>
        </div>
    )
}

export default Encrypted